errors statistics in file