add method totalCount