Added an approximation function to get the total documents in docFrequency (temporary solution).