For those curious, there are 389 gold leaves in the level. Not sure if a perfect run is possible. I had to add two runs together to get the total. Also the leaf counter does go above 999.