Perl 6 class for a global thread-safe singleton counter.