computes number of complete cases for a set of files