Support size query for Stack