[SM23] change the default print_count to 0
[SM] Improve print_count related code