removing the count(*) when no column assigned or :all #240

Hi @zzak @amatsuda this is a silly change but it will make a huge difference to not do an extra select count(*) when is not required. This change can help us to solve this issue https://github.com/gregbell/active_admin/issues/2638 in Active Admin gem cc @seanlinsley