You can place ++ before or after a variable, and the position changes when the increment happens.
With post-increment (x++), Java uses the current value of x in the expression first, then adds . With pre-increment (++x), Java adds first, then uses the new value.
int a = 5;
int b = a++; // b = 5, a = 6 (use then increment)
int c = 5;
int d = ++c; // d = 6, c = 6 (increment then use)
When ++ is on its own line (like count++;), the distinction does not matter. It only matters when ++ appears inside a larger expression or assignment. The same rules apply to --.