introducing warnings counter