length

trait Collection[A] {
  def length: Int
}

length returns how many elements this collection has.