Fix count in mm_api