In musical theatre, every song is assigned a sequential number in the script and score for rehearsal and production organization. The practice dates back to The Black Crook (1866), which had 16 numbered musical pieces.
Today, “number” is synonymous with “musical theatre song,” even if not literally numbered in every modern script.