ajax counter of messages from db