implement post count functionality for existing mbox file