A new formula for winding number

We give a new formula for the winding number of smooth planar curves and show how this can be generalized to curves on closed orientable surfaces. This gives a geometric interpretation of the notion of winding number due to B. Reinhart and D.R.J. Chillingworth.