Haproxy_stick_table

Hello

Tell me how to calculate the number of devices for each IP address in one table?
So far I can count separately for IP and device

http-request track-sc0 hdr_ip(X-Forwarded-For,-2) table per_ip_and_url_bruteforce_mproxy
http-request track-sc1 req.fhdr(x-device) table per_ip_and_url_bruteforce_xd_mproxy

backend per_ip_and_url_bruteforce_mproxy
stick-table type string size 1m expire 10m store http_req_rate(10m)
backend per_ip_and_url_bruteforce_xd_mproxy
stick-table type string len 200 size 1m expire 10m store http_req_rate(10m)