Changing parameters counter to use .count