Display counter based on two tag values

You might find this useful: