medium ai and set count