log counter