(Not a Teacher)
I'd say the first one. The second sentence could be read to mean that two documents are in this particular file exclusively (i.e. the two documents can be found nowhere else except for this one file). The first sentence means that there are only two documents in the file.