fix broken count code
fixing up counting
fixing up counting
fixing up counting