implemented my-count