12 pairs of cranial nerves are present that are divided into sensory nerves, motor nerves and mixed nerves.
Spinal nerves:
They emerge from the spinal cord
There are 31 pairs, 8 pairs in the cervical region, 12 pairs in the thorax, 5 pairs in the lumbar, 5 pairs in the sacral region and the last pair in the coccygeal region.
Hence, there are 12 pairs of cranial nerves and 31 pairs of spinal nerves.