Calculate how many games a single elimination tournament needs (entrants − 1), plus rounds, first-round byes and an optional third-place game.

Third-place game
Between the two semifinal losers; requires at least four entrants.