Get occurrences for loops with 'break'/'continue' statements

I understand why you are doing this, but it took me a minute to figure it out. I would comment why you are altering the search types here.