return number of failures in example