A counter is the “hello world” of concurrent programming. Count requests, count cache hits, count bytes sent. One shared number,…