add pagination total count