Error int he program

you are handling count in wrong manner

Modified code

check now