First Pull Request

you can do this. Also please change method name to count() to avoid redundancy
```php
return $db->value('SELECT count(id) FROM thread');
```