include number of errors when running script