add method and count method added