All essential count queries in place. Tested manually