AWS EMR mapper/reducer simple word count perl implementation