update mgt memsize to count