How are you supposed to know how many RAM your motherboard supports? Where do you check that?

I always thought that there was a limit to how much "space" your computer supports. Maybe it's a software question.