Add template tag for message(get last and count new)