add annotation for count method