Flexible reliable counting for JavaScript.