feature for counting variable declarations