updated sql for select count(*)