size method without traversing
last method