Although it's more common to number bars in a score as if they are all played once straight through without factoring in repeats, often the bars are numbered according to the actual order in which they are played. Sibelius makes this easy to do.
See All 714 Episodes of "Scoring Notes"