returns counter