Just wanted to leave a note so you might either update your documentation or the method itself. When trying to return a count, if your $statement->fetchAll uses PDO::FETCH_OBJ instead of PDO::FETCH_ASSOC, the count method will always return 0.
Thanks