COMPILER: move variable count as it may be usefull for other optims