Hammered out the MySQL command for counting...