obspy.core.stream.Stream.count

Stream.count()

Return the number of Traces in the Stream object.

Example

>>> stream = Stream([Trace(), Trace(), Trace()])
>>> len(stream)
3