set total number of records datatables plugin
<p>i'm using the plugin <a href="https://datatables.net/" rel="nofollow">datatables</a> for paginate the querys into my server but the problem came when i want say to <code>.DataTable</code> the total records that i get with a count (query) of my controller. </p>

<p>i tryed to search in google, into the <a href="https://datatables.net/manual/api" rel="nofollow">documentation</a>, and include here in stackoverflow and i didn't find it. </p>

<p>Any idea?</p>

<p>PS: this is my code: </p>

<pre><code>$(document).ready(function() {
        $('#resultados').DataTable( {
            //"recordsTotal": 45,
            'bFilter': false, 
            'bInfo': false,
            "bLengthChange": false,
            'bProcessing': true,
            'bServerSide': true,
            'sPaginationType': 'full_numbers',
            'ajax' : {
               "url": '&lt;?php echo base_url();?&gt;Comercial/getTar/?fail=0',
               "type": 'POST',
               "data": { //for search
                   Name: 'aaaaa test 1',
                   Date: 'aaaaa jjjj 2'
                }
            },
            'columns':[
                {"data":'Name'},
                {'data':'Date'},
                {'data':'AnotherInfo'}
            ]
        } );
</code></pre>