Which sentence uses commas correctly?

Sarah has five cats, three guinea pigs two dogs and a corn snake.

Sarah has five cats, three guinea pigs, two dogs and a corn snake.

Sarah has five cats three guinea pigs two dogs, and a corn snake.

Sarah has five cats, three guinea pigs, two dogs, and a corn snake.

The sentence "Sarah has five cats, three guinea pigs, two dogs, and a corn snake." uses commas correctly.