SELECT Count(distinct(a.cardno)) from `room_tenant` a where  a.cardstatus=1