cleaned views, added support for word counting