Samurai, who were in the service of feudal lords, were paid in units of rice called koku. One koku was equivalent to the amount of rice needed to feed a man for one year. Sometimes they were paid in gold coins called ryo, one ryo being equivalent to one koku.