Implementation of the Size method