gem_count deprecated