Counter-current gas permeation for H2S/CO2 separation from hydrocarbon mixture