Hey guys, Jay here!
This is a very simple self explanatory image which I made.
The mnemonic is 2 2 4 4. The number of Cranial Nerves leaving or exiting from each Brain segments (namely and respectively Cerebrum, Mid brain, Pons and, Medulla) are denominated in each of these numbers)
Hope it makes sense! :)