title: Java Flux GroupedFlux count() print
body: <p>Hi rectors all aver the world. I'm doing reactivi programming in Java. I'm a java/grails/react developer but first steps with reactive programming with Spring Boot, version 2 M7 in this case. In the next code:</p>
  
  <pre><code>@GetMapping(API_BASE_PATH + "/flux4")
  public String flux4() {
      StringBuilder sb = new StringBuilder();
      Flux.just("alpha", "bravo", "charlie")
          .map(String::toUpperCase)
          .flatMap(s -&gt; Flux.fromArray(s.split("")))
          .groupBy(String::toString)
          .sort(Comparator.comparing(GroupedFlux::key))
          .map(group -&gt; group.key() + " =&gt; " + group.count() + "; ")
          .subscribe(sb::append);
  
      return "flux 4: " + sb.toString();
  }
  </code></pre>
  
  <p>I get the group.key() printed but how caon I get printed the group.count() ?</p>
  
  <p>Any help is welcome</p>
  
  <p>Cheers</p>
  
  <p>Juan</p>