add calculate vm count