update to wordCount function, from greenido

BUG=

Review URL: https://chromiumcodereview.appspot.com/16560010