add log_count
fix dup id
count logs