Diet Cake Board exercise

1st PR
suggestion po for getting the count :bow:
```php
return (int) $db->value("SELECT COUNT(*) as count FROM thread");
```