- - len(Messages()) as it exhausted the iterator.
- Use len(list(Messages())) or
- `Query.count_messages()` to get the length.
+ - `len(Messages())` as it exhausted the iterator
+
+ Use `len(list(Messages()))` or `Query.count_messages()`
+ to get the length.