fix counter init bug in ramp example
doc in ramp example