public static function countByCategory(Model_Categories $category) { return Model_Articles::count('category.id = ? AND is_published = ?', [$category->getId(), 1]); }