added simple C counting example