Changed the count to an int