Weekly count of messages send via ejabberd in a Mnesia table