Fetching details from the dictionary...

public caning (60-100 strokes; second least severe of the five ritsuryō punishments)
律令制では杖は刑罰の一つだった。
Under the ritsuryo system, caning was a form of punishment.
江戸時代の刑罰で杖は六十から百回打たれる刑だった。
Caning was a punishment of 60 to 100 strokes.
古代中国の刑罰が日本の杖刑の起源だ。
Ancient Chinese punishment is the origin of Japanese caning.