renamed alledgedCount to expectedCount for clearer meaning