COUNTING THEOREMS AND INVERSE FUNCTION THEOREMS FOR ANALYTIC FUNCTIONS