7 Pairs of True Ribs (1-7)
Because they are directly connected to the sternum by a cartilage.
5 pairs of false ribs (8-12)
Because they are connected to a cartilage that is connected to a cartilage that is connected to the sternum.
2 pairs of floating ribs (11-12)
Are not connected to the sternum at all.