Word count is a simple program that counts the number of times a word appears in a file. I The Mapper’s role is to map the keys to the existing values, and the Reducer’s role is to aggregate the keys with common values. As a result, everything is represented as a Key-value pair.