Fooling around with some stats in Apache Spark