select pck_id, count(*) from rz1dd.tacct_program where plan_name = 'EU5010' and timestamp > current timestamp - 3 month group by pck_id