having trouble counting frequencies of digrams, cannot read file