I am trying to print a counter which increments from a doOnNext() function.
public static void main(String [] args) { final AtomicInteger counter = ne