/** * Gets the players count of a * given tournament. * * @param int $tournamentID * * @throws Illuminate\Database\Eloquent\ModelNotFoundException * * @return int */ public function getPlayersCount($tournamentID) { $tournament = $this->tournamentsRepo->getTournament($tournamentID); return $this->playersRepo->getCount($tournament); }