get last version cnt