fixed the number of warning and number of errors count

update comments