Update count in datatables.php

Updated count, so that the query only runs once when you dont have a search action and stripping out the select statements to make the query blazing fast. In my setup i went from 300ms back to 1.6 so im happy!