Electrostatic instabilities in current-carrying and counterstreaming plasmas