`groups` is a `Paginator.Page` object, thus it's size is the size of the page not the total number of results. To get the total number of results you can use `groups.paginator.count` which is an integer.