[core] Use lowercase module names in examples
[core] Initialize counter in place