4. (10) Let $A, B \in M_{n \times n}(\mathbb{R})$. Show that $\operatorname{rank}(AB) \leqslant \operatorname{rank}(A)$.