Add count method