public function getNumCommentsForAuthor(int $authorId) : int { $num = $this->db->cell('SELECT count(commentid) FROM hull_blog_comments WHERE author = ?', $authorId); if ($num > 0) { return $num; } return 0; }