Insert multiple custom components after x-number of posts

I wouldn’t do this with a “count” that is reset on the loop, but instead use some of the items in the WP_Query object, like paged value. You can use that to interpret that you are on the second or subsequent pages and then if you are x item on y page (or some other format) you should be solid.

Hope this helps!