A animal shelter had 13 dogs and 15 cats. 4 dogs were adopted, and 1 cat died. then 6 more cats were rescued and 1 dog was adopted. then 3 more dogs were adopted, and 6 cats were added.

How many pets are there in all?
(whoever guess correctly gets brainliest) ​