Used Counter class from collection