Set variable by node count

Set a variable to the amount of nodes that match a given selector.