private int countOfLocalVars() {
		int count = 0;
		for (Variable var: variables)
			if (!var.isParameter())
				count++;
				
		for (ScopeObject child: children) {
			if (!child.isFunctionScope())
				count += child.countOfLocalVars();
		}
		
		return count;
	}