Better SQL for finding out the count of each state.