from mrjob.job import MRJob
from mrjob.step import MRStep

class mattTests(MRJob):
    
    def mapper(self, _, line):
        words=line.split()
        for word in words:
            yield word.lower(), 1
            
    def combiner(self, key, values):
        yield key, sum(values)
        
    def reducer(self, key, values):
        yield key, sum(values)
        
if __name__ == '__main__':
    mattTests.run()
