Trying to make counting work

Now it fails with  "0 [main] p 12612 open_stackdumpfile: Dumping stack
trace to p.exe.stackdump"