Added idf count generation