The name `flag` is too generic and doesn't convey what its purpose is. Maybe something like `installed_gems_count`?