Spark 3754 spark streaming file system api callable from java

This is a WIP of making the filesystem api callable for the Java version of Spark Streaming.
Why is it not possible to just call rdd.count() and add up the counts in a global counter?