got counting working