Votes are being counted in the two races that will determine whether Republicans keep control of the US Senate.