Statistics for Formal Functions in Menuets by Johann Sebastian Bach