Count passed assertions and only store details for failed assertions.