LPS-51569 Source formatting

Hey Mike,

I'm forwarding this pull to you since you introduce the use of the index for counts in LPS-45530. This pull applies it to other methods of the same class.