Updated match for determining number of samples per file