Working on regex for word counter