<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_metrics(self):
 """ Returns the Model metrics. :return: Nodes metrics. :rtype: dict """


        search_file_nodes_count = search_occurence_nodesCount = 0

        for node in foundations.walkers.nodes_walker(self.root_node):
            if node.family == "SearchFile":
                search_file_nodes_count += 1
            elif node.family == "SearchOccurence":
                search_occurence_nodesCount += 1

        return {"SearchFile": search_file_nodes_count, "SearchOccurence": search_occurence_nodesCount}