Made number of actors thread safe. Cached number of actors so change of the value doesn't break a running benchmark. Added number of actors to logging.