updated maf counter to use new MAFfile object instead of FileHandle