rx/core/observablebase.py
def count(self, predicate=None) -> 'ObservableBase':
        """Returns an observable sequence containing a value that
        represents how many elements in the specified observable
        sequence satisfy a condition if provided, else the count of
        items.

        Examples:
            >>> res = source.count()
            >>> res = source.count(lambda x: x > 3)

        Args:
            predicate: A function to test each element for a condition.

        Returns:
            An observable sequence containing a single element with a
            number that represents how many elements in the input
            sequence satisfy the condition in the predicate function if
            provided, else the count of items in the sequence.
        """
        from ..operators.observable.count import count
        return count(self, predicate)
Returns an observable sequence containing a value that
        represents how many elements in the specified observable
        sequence satisfy a condition if provided, else the count of
        items.

        Examples:
            >>> res = source.count()
            >>> res = source.count(lambda x: x > 3)

        Args:
            predicate: A function to test each element for a condition.

        Returns:
            An observable sequence containing a single element with a
            number that represents how many elements in the input
            sequence satisfy the condition in the predicate function if
            provided, else the count of items in the sequence.
        
Returns an observable sequence containing a value that
represents how many elements in the specified observable
sequence satisfy a condition if provided, else the count of
items.
Returns an observable sequence containing a value that represents how many elements in the specified observable sequence satisfy a condition if provided else the count of items .
def count(self, predicate=None) -> 'ObservableBase':
        from ..operators.observable.count import count
        return count(self, predicate)
def count ( self , predicate = None ) -> 'ObservableBase' : from . . operators . observable . count import count return count ( self , predicate )
Returns an observable sequence containing a value that
represents how many elements in the specified observable
sequence satisfy a condition if provided, else the count of
items.
Returns an observable sequence containing a value that represents how many elements in the specified observable sequence satisfy a condition if provided else the count of items .
"""Returns an observable sequence containing a value that
        represents how many elements in the specified observable
        sequence satisfy a condition if provided, else the count of
        items.

        Examples:
            >>> res = source.count()
            >>> res = source.count(lambda x: x > 3)

        Args:
            predicate: A function to test each element for a condition.

        Returns:
            An observable sequence containing a single element with a
            number that represents how many elements in the input
            sequence satisfy the condition in the predicate function if
            provided, else the count of items in the sequence.
        """
An observable sequence containing a single element with a
number that represents how many elements in the input
sequence satisfy the condition in the predicate function if
provided, else the count of items in the sequence.
An observable sequence containing a single element with a number that represents how many elements in the input sequence satisfy the condition in the predicate function if provided else the count of items in the sequence .
self
predicate
A function to test each element for a condition.
A function to test each element for a condition .
examples
>>> res = source.count()
>>> res = source.count(lambda x: x > 3)
>>> res = source . count () >>> res = source . count ( lambda x : x > 3 )