Translate the following statement into an appropriate algebraic equation: The number of dogs (d) in the animal shelter is twice the sum of 4 and the number of cats (c).