added block counter