Fixed treating nonce-count.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>