Adding code for DocumentFrequency for Query Representation