Try the free command, which will tell you the total/used/free amounts of RAM you have, the -m flag will display it in MB:
free
-m
free -m
Though I think it just uses the same source as /proc/meminfo behind the scenes so you may get the same answer.
/proc/meminfo