# PageCount<T>(IQueryable<T>, Int32) Method
The number of pages of *pageSize* size in the given collection.
## Definition
**Namespace:** CapyKit.Extensions
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2
**C#**
``` C#
public static int PageCount(
this IQueryable source,
int pageSize
)
```
**F#**
``` F#
[]
static member PageCount :
source : IQueryable<'T> *
pageSize : int -> int
```
#### Parameters
#### Return Value
Int32
An int.
#### Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable(T). When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
## Exceptions