Super Mario World/Vanilla Ghost House

I can't get out of this level...I keep "going around and around"! Is there a specific number of times that you have to "go around"?

Thanks