Count dependencies and packages

def count_packages(self):
        """Count dependencies and packages
        """
        packages = []
        for pkg in self.dmap.values():
            packages += pkg
            self.count_dep += 1
        self.count_pkg = len(set(packages))