Added counting of doc freqs