MessageCount and UserCount functions added.