added element count methods to mesh class