first attempt at vectorization
using RDD aggregate to count