# PageCount<T>(IEnumerable<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.0+6cdd805be49c3b769a116584ea6904955ecd820d
**C#**
``` C#
public static int PageCount(
this IEnumerable source,
int pageSize
)
```
**VB**
``` VB
Public Shared Function PageCount(Of T) (
source As IEnumerable(Of T),
pageSize As Integer
) As Integer
```
**C++**
``` C++
public:
[ExtensionAttribute]
generic
static int PageCount(
IEnumerable^ source,
int pageSize
)
```
**F#**
``` F#
[]
static member PageCount :
source : IEnumerable<'T> *
pageSize : int -> int
```
#### Parameters