Issue #23: Message metrics

See Github issue #23 for details.