Fixed counter issue

I implemented a control flow statement to increment and continue to a do
while loop if the first line read from the socket 8080 is neither null
nor containing a Get icon message