add listBy and countBy