got rid of unecessary lines of code

changed float on count to int