Dimes are worth $0.10 and Barry has $10.00 worth of dimes so he has 10/.10 = <<10/.10=100>>100 dimes
Dan has half the amount of dimes as Barry so Dan has 100/2 = <<100/2=50>>50 dimes
Dan finds 2 more dimes on his way home so he now has 50+2 = <<50+2=52>>52 dimes
#### 52