Fixed miscount for total word families