added hit counter, closes #8