src/main/java/io/reactivex/Flowable.java
@CheckReturnValue
    @BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Single<Long> count() {
        return RxJavaPlugins.onAssembly(new FlowableCountSingle<T>(this));
    }
@CheckReturnValue
    @BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Single<Long> count() {
        return RxJavaPlugins.onAssembly(new FlowableCountSingle<T>(this));
    }
@ CheckReturnValue @ BackpressureSupport ( BackpressureKind . UNBOUNDED_IN ) @ SchedulerSupport ( SchedulerSupport . NONE ) public final Single < Long > count ( ) { return RxJavaPlugins . onAssembly ( new FlowableCountSingle < T > ( this ) ) ; }
Returns a Single that counts the total number of items emitted by the source Publisher and emits
this count as a 64-bit Long.
<p>
<img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/longCount.png" alt="">
<dl>
<dt><b>Backpressure:</b></dt>
<dd>The operator honors backpressure from downstream and consumes the source {@code Publisher} in an
unbounded manner (i.e., without applying backpressure).</dd>
<dt><b>Scheduler:</b></dt>
<dd>{@code count} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>

@return a Single that emits a single item: the number of items emitted by the source Publisher as a
64-bit Long item
@see <a href="http://reactivex.io/documentation/operators/count.html">ReactiveX operators documentation: Count</a>
@see #count()
Returns a Single that counts the total number of items emitted by the source Publisher and emits this count as a 64 - bit Long . <p > <img width = 640 height = 310 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / longCount . png alt = > <dl > <dt > <b > Backpressure : < / b > < / dt > <dd > The operator honors backpressure from downstream and consumes the source { @code Publisher } in an unbounded manner ( i . e . without applying backpressure ) . < / dd > <dt > <b > Scheduler : < / b > < / dt > <dd > { @code count } does not operate by default on a particular { @link Scheduler } . < / dd > < / dl >