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
Merge pull request #577 from skumargithub/master

Example of cumulative counting using updateStateByKey