fixed get number of issues command to wait for the server to respond