public static function countComments($storyId) { return isset(self::$storyComments[$storyId]) ? count(self::$storyComments[$storyId]) : 0; }
public function totalCommentCount(Story $story) { return DataSource::countComments($story->id); }