Examaple of cumulative counting using updateStateByKey
Modified as per TD's suggestions
Removed unused code, clarified intent of the program, batch size to 1 second
Updated slf4j version to 1.7.2
Made use of spark.executor.memory setting consistent and documented it