What is the meaning of さんぎ?

算木: counting rod

Source: wiktionary.org