A closer look at The Battle of the Five Armies
First lets look at the Dwarf Army.
Now using many photos (I will show a few examples) I discovered they had:
2,528 infantry (Estimated 1,264 pikeman, 480 swordsman, and 784 axeman)
Now after looking at the extended edition, I discovered the Dwarves in this version had:
2,880 Dwarf Infantry and 600 Goat Cavalry (Estimated 1440 Pikeman, 960 Axeman, and 480 Swordsman)
Finally, they had 8 ballistas and 4 war chariots - which are seen in the extended edition only.
-- IN CONCLUSION --
Finally, the total number is
2,880 + 13 (ThorinsCo) + 1 (Dain) + 12 (3 per chariot) + 80 (10 operators per ballista) + 600 (Cav) =
2,986 Dwarves
-------------------------------------------------
Next lets look at the elves. I will skip the bullshit and go to the numbers I calculated using the same method as above and I already deleted the pictures but here is one of the base photos I used:
The Elves had:
6,071
(Estimated 1,940 Spearman, 3,000 Archers, 672 Swordsman, 448 Heavy Swordsman/Knights with silver armor but aren't seen up close, 10 General's Bodyguard cav seen at the start of the movie, 1 Elf king)