Updated file count check.