public int Cardinality() { int rtnVal = 0; foreach (Run r in runArray) { rtnVal = rtnVal + (r.EndIndex - r.StartIndex + 1); } return rtnVal; }