Add a counter to the 'database deltree' CLI command.