How was calculations done during the ancient times?

this was done by finger counting and the use of an abacas.