Ensure that the filter_count member is reset to zero when emptying the graph