Is there a way of telling how much electricity a capacitor can store?

is there a way of telling how much electricity a capacitor can store?
like a battery.
and how long it can discharge for?
2 answers 2