text file character counter