step : To run this code download python ide run this file with or in linux download this file and save /home directory and open terminal then type python CountHandshake.py
then in command line terminal ask enter the number for count handshake you type your number then its showing answer
if you want to check more
then press 1 agiain you will check with other number