C -- example function: counting force