count word numbers in files