Count calls

Conflicts:
	miner.c