removed an unnecessary method for reflection
simplification
Merge remote-tracking branch 'origin/master'
fixed the partition number
simplified the previous pull request
using a counters to count the number of values per reducer. see #297