Changed how count works, fixed group by.