add log counter