The compound noun in the sentence 'Mohamed wants to be a quantity surveyor in the near future' is 'quantity surveyor'. It is important to recognize that compound nouns are two or more words combined to form a new meaning.
In the sentence provided, there is one compound noun: quantity surveyor. A compound noun is formed when two or more words are put together to form a new word with a new meaning.
In this context, 'quantity' and 'surveyor' are combined to describe a profession involved in the management of costs pertaining to building and engineering projects.
When identifying compound nouns, it is important to look for two or more words that work together to specify a single idea. Note that the subject of a sentence is not always a compound noun but could be a simple noun or even a pronoun.