Some nodes are only counted depending on their parents type (e.g. lambda only counted as a function of its assigned to a variable). Refactor the logic how we handle these cases from "count this node if the child looks like X" to "count this node of parent looks like X".
Some nodes are only counted depending on their parents type (e.g. lambda only counted as a function of its assigned to a variable). Refactor the logic how we handle these cases from "count this node if the child looks like X" to "count this node of parent looks like X".