Yeah, yellow flags were, and if you count out the plate races which are always stupid and annoying the lead changes wouldn't be quite as high really, but those numbers are in there every year I'm afraid
Competition cautions are always early in the race and are used when it has rained on the track since the last time that competitors were able to turn practice laps. Check tire wear and such.