Yesterday, a radio personality admitted to a singer that she was "showing (her) age" by asking her if she had to audition with "another number" besides our country's national anthem.
I think it's fine to refer to a piece of music as a number, as long as you don't call it a ditty. That's where the line is--or where it should be, at least.