There are 12 pairs of ribs in human, which from the bony lateral walls of the thoracic cage. The last two pair of ribs (total four) are called floating ribs because their anterior ends are not attached to either the sternum or the cartilage of another rib. The floating ribs protect the kidneys.