It's impossible, as you can arrange as many notes as you want at a time, and the number of notes you can use is ever changing. It can be a 4 note theme, it can be a 128492450480 note theme. The chance of making a theme exactly as long with the exact durations and the like are basically impossible. Although, it's interesting how some themes are so simple yet so effective.