pub fn count_with_label(label: &str)
The console.count() function.
console.count()
MDN Documentation
This API requires the following crate features to be activated: console
console