The amount of stomachs that giraffes have are 4 stomachs.
The reason that giraffes have 4 stomachs is because the giraffes are ruminants.
The giraffe needs more than one stomach to help with aiding in the digestion of food that the giraffe eats.
Giraffes need the 4 stomachs to help the giraffe with the digestion process as plants and leaves are very hard to digest.
The 4 stomachs that giraffes have makes them a ruminant species, as they are able to digest food that other animals(and humans) cannot.
Without the 4 stomachs the giraffes would not be able to digest as much or types of foods they do digest.