problems with counting