got some working word count functions using Data.Map