add getting of missed message count.  First try - will need refining