added counter, done I think