First of all, in your implementation above you should return a type countinstead void.
For example, suppose you announced int count.
Then you need to return intin the version of 'postfix' and int&or const int&in the version of 'prefix'.
b = a++ b = ++a, (, , ).
. "c++" count , "postfix ++" count .
, "c++" (, int), "c++" (, int&).
, .