Corrected problem with TransCount

There still is a discrepancy with Holger's function.