Roman Numeral to Integer

Roman numerals are "the numeric system used in ancient Rome" that were later replace by the Arabic numerals we're used to (0, 1, 2, 3, etc.). The goal of this challenge is to convert a very long Roman numeral into an integer (i.e. Arabic numeral). Here are some examples:

This page describes the exceptions that apply to Roman numerals.

Convert the following Roman numeral to an integer:

MMMMMMMMMMMMMMMMMMMMMMMMCDXCVIII