Index an array returned by a function is not supported in PHP 5.3, so please do this:

```php
$result           = $statement->fetch();
$countBefore = $result['count'];
```