Fixed counting bug when limiting depth and added option --no-counting