This class writes a df file for an (index) corpus. 
The first line is the number of documents in the corpus.
Then, the n-th line is the number of documents that contain the word
with id n-1