Couting variables just once