Replaced occurrences of '++' with '+= 1'

As per discussion in #3636.