Length is a property of the collection. It is used to count the number of models that the collection contains.
Syntax:
Let's take an example.
See this example: