added size method to stack