added messageCounts param