add funtion countOperate