Count characters.
npm:
npm install ccountvar ccount = require('ccount');
ccount('foo(bar(baz)', '(') // 2
ccount('foo(bar(baz)', ')') // 1Get the total count of character in value.
value(string) β Content, coerced to string.character(string) β Single character to look for.
number β Number of times character occurred in value.
MIT Β© Titus Wormer