method Console.count Private Console.count(label?: string): void Maintains an internal counter for a given label, incrementing it each time the method is called Examples Example 1 console.count('myCounter'); console.count('myCounter'); // Will show: myCounter: 2 Parameters optional label: string The label to count. Defaults to 'default' Return Type void