Vote counting in this year's midterm elections is under way in the US and early results show gains for the Democrats.