Bugfix: fixing MySQL query in how word count is calculated