Mental Capacity

What is meant by mental capacity?