I didn’t delete anything, and your question is not on topic for Stack Overflow. Code Review is a dedicated Stack Exchange site with question guidelines that will help you get the most out of code review. My bad for trying to give useful information in the comments on top of that. FWIW, the newline counting part is never going to be your bottleneck, so just write it in the most
readable sensible way (which, again, CodeReview.SE will help you with). —
Ry- ♦ 28 secs ago