Did you want it to get a hex representation of the byte, or the byte itself? To change the value of CountPPY, you would have to change the value of mPPY. Every call you make to CountPPY causes your app to check the value of mPPY.
Also, if I am looking at your code correctly, you shouldn't need...