count losses

count losses