add log count support