sheep: fix wrong number of nodes

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
(cherry picked from commit 36e350acf31ac33a83b68145b7121c8b18c16991)