max count and isopenfile