How many mathematicians does the main protagonist meet in the musical "Fermat's Last Tango"?

The main protagonist meets five mathematicians - Fermat, who appears in Daniel's study, and Euclid, Pythagoras, Newton, and Gauss, who appear in the "Aftermath".