completed wordcount ready for regex