add count override option to RestrainCommand