Linux – how many RAM memory modules are installed?

Under Linux, how to check how many RAM modules are installed and what is maximum capacity?

As a superuser run:

The output should look like this (for every module, available or not):