fix comment lines and configuration file line counting