There are a number of ways to express concentration of a solution. This includes molarity. Molarity is expressed as the number of moles of solute per volume of the solution. Therefore, the molarity of the given solute in the solution is:
Molarity = 5 moles / 2 L = 2.5 moles / L