There are 2519 diamonds.
You're basically looking for the lowest common multiple of 2 to 10, and then minusing 1 because Barky always found himself one diamond short.