I'm kinda doubting my math skills but, uh, this is what I have right now, assuming you stayed on Route 202 for wild Starlies, used only Dunsparce to faint them, and that Dunsparce wasn't traded from another game.
Dunsparce is in the Medium Fast group, meaning EXP = n^3
EXP needed from level 1 to 17 is 17^3 = 4913 EXP
With Starlies, level 1 to 10 is 10^3 = 1000 EXP
1*56*2 = 112 / 7 = 16 (lvl 2)
1*56*3 = 168 / 7 = 24 (lvl 3)
1*56*4 = 224 / 7 = 32 (lvl 4)
Average EXP gain per Starly = 24
1000 / 24 = 41.666667 ~ 42 fainted total
4^3 = 64 EXP to get to level 4
64 / 24 = 2.666667 ~ 3 fainted w/o PokeRus
MEANING
1 + 4 = 5 EVs * 3 fainted = 15 EVs
(1+4)*2 = 10 EVs * 39 fainted = 390 EVs
390 + 15 EVs = 405 EVs right now.