reinstated 32bit compatibility (mostly)

replaced calculation and storage of 64bit int values with own class Count64, which implements basic 64bit-addition on 32bit machines (and falls back to int on 64bit)