hello i am trying to count values from array. my ResidentMail table look like
id resident_id mail_type 1 10 message 2 10 well