Well, one way to narrow that down is that, excepting the castle’s secret stars, there are 7 stars in each course. The 100 coins star can be obtained while collecting some other star (usually red coins) but every other star in a course resets you to right outside that course’s entrance.