add count method