Added equals, hashCode to Counter