How many themes do you need?
A musical composition of any length usually contains multiple melodic themes. Often, there are surprisingly few such themes even in longer pieces - the bulk of the piece is spent developing a small amount material. In this video post, I demonstrate how a typical classical composition uses just two or three themes to build a longer form.
Here is the sheet music - one of the very first scores posted to musescore.com back in 2010, well before the release of MuseScore 1.0!
Mozart - Piano Sonata No. 16 - Allegro