Before we do any math here, it may be wise to cast the arguments:

```
$offset = (integer) $offset;
$itemCountPerPage = (integer) $itemCountPerPage;
```