There were ten eggs in total.

Literal

Egg [subject-が] all-together 10-[counter] existed.

全部で ('in total / all together') is a fixed adverbial — the で here marks the scope of totaling. 個 is the generic small-object counter, used for eggs, fruit, balls, etc. Counter expressions attach adverbially to the verb, not to the noun.