fn count_portage() -> Option<usize> {
        let pkg_dir = Path::new("/var/db/pkg");
        if pkg_dir.exists() {
            return Some(walkdir::WalkDir::new(pkg_dir).into_iter().count());
        }

        None
    }
/// Returns the number of installed packages for systems
/// that utilize `portage` as their package manager.
Returns the number of installed packages for systems
that utilize `portage` as their package manager.
Returns the number of installed packages for systems that utilize ` portage ` as their package manager .
fn count_portage() -> Option<usize> {
        let pkg_dir = Path::new("/var/db/pkg");
        if pkg_dir.exists() {
            return Some(walkdir::WalkDir::new(pkg_dir).into_iter().count());
        }
        None
    }
fn count_portage ( ) -> Option < usize > { let pkg_dir = Path :: new ( " " ) ; if pkg_dir . exists ( ) { return Some ( walkdir :: WalkDir :: new ( pkg_dir ) . into_iter ( ) . count ( ) ) ; } None }
Returns the number of installed packages for systems
that utilize `portage` as their package manager.
Returns the number of installed packages for systems that utilize ` portage ` as their package manager .