Compiled and ran simple counter