write errors number to console