Second Pull Request - Project Course (ThreadBoard)

L71 ~ L76 can be reduced to 1 line po
```php
return $db->value('SELECT count(id) FROM comment WHERE thread_id = ?', array($thread_id));
```