presto-main/src/main/java/io/prestosql/sql/planner/optimizations/QueryCardinalityUtil.java/QueryCardinalityUtil/extractCardinality
class QueryCardinalityUtil:    public static Range<Long> extractCardinality(PlanNode node, Lookup lookup)
    {
        return node.accept(new CardinalityExtractorPlanVisitor(lookup), null);
    }