return number of failed assertions