made counting as a floating point operation in pi.d as in the other implementations