show message count in title

inspired by the issue #126.