Add wordcount

I'm a little unclear about line 15, for some reason, we're getting a 0 length match. I don't think there's anything wrong with my regex, so that's my hacky workaround. 

If @rtoal can't find any issues with it, I'm just going to chalk it up to a compiler bug and remove the hack when it presumably gets fixed upstream.