add count reboot times by watch dog

add count reboot times by watch dog and main flow.
need add send mail by ruby in nas.