The majority of this response discusses the use of Stars and Bars to conquer the problem. In fact, it wasn't until I saw the answer of true blue anil that I started thinking of a much easier approach. First see my Addendum, at the end of this answer.
The answer of true blue anil has since been deleted. I regard this alternative approach, that was inspired by the answer of true blue anil before that answer was deleted, that does not use Stars and Bars theory, as (by far) the most elegant approach.
Then, you can examine the remainder of my answer for the (somewhat primitive) use of Stars and Bars theory to attack the problem.
I am going to assume that a specific digit can occur more than once in the 5 digit number. For example, the 5 digit number can have two 1's in it. I will also assume that the leftmost digit can be $~0.~$ Then, at the end of my answer, I will adjust the computation, to assume that the leftmost digit can not equal $~0.$
You have that $~(d,e) \in \{(9,7),(7,9)\} ~: ~2 ~$ possibilities.
Further, regardless of whether $~(d,e) = (9,7),~$ or $~(d,e) = (7,9),~$
you then have that
$$(a + b + c) \equiv 4 \pmod{5}. $$
This implies that $~(a + b + c)~$ must be an element in $\{4, 9, 14, 19, 24\}.$
The above constraint can be re-stated as
$$~(a + b + c) = (4 + 5k) ~: ~k \in \{0,1,2,3,4\}. \tag1 $$
Now, Stars and Bars theory can be used to enumerate the number of all possible satisfying ordered triplets $~(a,b,c).~$ There is a complication however. Inclusion-Exclusion will also be involved, because each of the variables $~a, ~b, ~$ and $~c~$ has an upper bound of $~9.~$
I am going to follow the model in this answer to attack the problem.
Here, if you ignore the presence of upper bounds, you have that for each value of $~k,~$ the total number of solutions is the same as the number of solutions to
By basic Stars and Bars theory, the number of solutions is
$$\binom{[4 + 5k] + [3-1]}{3-1} = \binom{6 + 5k}{2}.$$
Therefore, the preliminary computation, that ignores the existence of upper bounds on $~a, ~b, ~c~$ is
$$\sum_{k=0}^4 \binom{6 + 5k}{2}. \tag2 $$
Clarification
If there was no concern about upper bounds on $~a, ~b, ~c~$ and if the left most digit was permitted to equal $~0,~$ then the final computation would be
$$2 \times \left[ ~\sum_{k=0}^4 \binom{6 + 5k}{2} ~\right].$$
For this particular problem, the easiest way to adjust for the presence of upper bounds on the variables $~a, ~b, ~c$ is by considering each of the values $~k \in \{0,1,2,3,4\},~$ separately.
For $~k \in \{0,1\},~$ you have that $~0 \leq (4 + 5k) < 10.~$
Therefore, for $~k \in \{0,1\},~$ it is impossible for any satisfying ordered triple $~(a,b,c)~$ to have any of its variables be $~\geq 10.~$
For $~k \in \{2,3\},~$ you have that $~10 \leq (4 + 5k) < 20.~$
Therefore, for $~k \in \{2,3\},~$ for any satisfying ordered triple $~(a,b,c),~$ you can not have more than one of these variables be $~\geq 10.~$
So, you can reserve the factor of $~3,~$ and then assume, without loss of generality, that $~a \geq 10.~$
So, when $~k \in \{2,3\},~$ the number of solutions to deduct is the same as the number of solutions to
The standard adjustment here is $~y = (a - 10) \implies y \in \Bbb{Z_{\geq 0}}.$
So, ignoring the reserved factor of $~3,~$ with $~k \in \{2,3\},~$ you are now computing the number of solutions to
By basic Stars and Bars theory, the number of solutions to deduct, when $~k \in \{2,3\},~$ is (remembering the reserved factor of $~3$):
$$3 \times \binom{[5k - 6] + [3-1]}{3-1} = 3 \times \binom{5k - 4}{2}.$$
So, at this point in the analysis, the computation in (2) above has been adjusted to
$$\left[ ~\sum_{k=0}^4 \binom{6 + 5k}{2} ~\right] - \left[ ~3 \times \sum_{k=2}^3 \binom{5k - 4}{2} ~\right]. \tag3 $$
It remains to consider how many solutions need to be deducted for $~k = 4 \implies (5k + 4) = 24.$
Here, I am going to implement Inclusion-Exclusion more formally.
Let $~S~$ denote the collection of all ordered triplets $~(a,b,c)~$ such that $~a,b,c \in \Bbb{Z_{\geq 0}},~$ and $~a + b + c = 24.$
Let
$S_1~$ denote the subset of $~S~$ where $~a \geq 10.~$
$S_2~$ denote the subset of $~S~$ where $~b \geq 10.~$
$S_3~$ denote the subset of $~S~$ where $~c \geq 10.~$
Then, the number of solutions to deduct is
$$|S_1 \cup S_2 \cup S_3|. \tag4 $$
Note that since $~(3 \times 10) > 24, ~$ you have that $~|S_1 \cap S_2 \cap S_3| = 0.$
Then, from Inclusion-Exclusion theory, and by considerations of symmetry, you have that the expression in (4) above is equivalent to
$$[ ~3 \times | ~S_1 ~| ~] - [ ~3 \times | ~S_1 \cap S_2 ~| ~].$$
Using analysis very similar to the analysis when $~k \in \{2,3\},~$ you have that the number of solutions to deduct here is
$$3 \times \left[ ~\binom{16}{2} - \binom{6}{2} ~\right].$$
So, at this point the total number of satisfying solutions $~(a,b,c)~$ may be expressed as
$$N = \left[ ~\sum_{k=0}^4 \binom{6 + 5k}{2} ~\right] - \left[ ~3 \times \sum_{k=2}^3 \binom{5k - 4}{2} ~\right]$$
$$- \left\{ ~3 \times \left[ ~\binom{16}{2} - \binom{6}{2} ~\right] ~\right\}.\tag5 $$
Therefore, assuming that $~0~$ is allowed to be the leftmost digit, the enumeration of satisfying digits is
$$2 \times N.$$
It now remains to provide the separate answer, under the assumption that the leftmost digit is not permitted to equal $~0.~$
The easiest way of doing this is to compute the number of satisfying solutions $~(a,b,c)~$ where $~a = 0.~$ Denoting this computation as $~D,~$ then the final answer here will be
$$2 \times ( ~N - D ~).$$
With $~a = 0,~$ and $~b + c \equiv 4 \pmod{5},~$
you have that $~(b + c) = (4 + 5l) ~: ~l \in \{0,1,2\}.$
So, you temporarily ignore that $~b,c~$ have an upper bound of $~9,~$ and you enumerate the number of solutions to
By Stars and Bars theory, the computation of $~D~$ therefore starts with
$$\sum_{l = 0}^2 \binom{5 + 5l}{1} = \sum_{l=0}^2 (5 + 5l).$$
Then, very similar to the adjustments made to $~N,~$ you have to adjust for when $~l = 2,~$ and one of the variables $~b,c~$ is $~\geq 10.~$
The amount to deduct from $~D~$ will be
$$2 \times (10 - 5) = 10.$$
Now, the final computation may be provided, under the assumption that $~0~$ is not permitted to be the leftmost digit:
$$N = \left[ ~\sum_{k=0}^4 \binom{6 + 5k}{2} ~\right] - \left[ ~3 \times \sum_{k=2}^3 \binom{5k - 4}{2} ~\right]$$
$$- \left\{ ~3 \times \left[ ~\binom{16}{2} - \binom{6}{2} ~\right] ~\right\}.$$
$$D = \left[ ~\sum_{l=0}^2 (5 + 5l) ~\right] - 10.$$
The final computation is
$$2 \times (N - D).$$
$~\underline{\text{Addendum}}$
See also the comment that I left, following the answer of true blue anil. You can construe part of the problem as a probability problem. At random, the probability of any 3 digit number having the sum of its digits being congruent to $~4 \pmod{5}~$ is $~\dfrac{1}{5}.~$
This can be demonstrated by partitioning the $~900~$ elements in the set $~\{100,101,\cdots,999\},~$ into subsets of $~10~$ each, of form $~10k + r ~: ~r \in \{0,1,\cdots,9\}.$
Then, in any such subset of $~10~$ elements, exactly $~2~$ of the $~10~$ elements will have the sum of their digits congruent to $~4 \pmod{5}.$