Question: does reaching base on an error count towards obp

Answer: No, By factoring in only hits, walks and times hit by pitch, OBP does not credit the batter for reaching base due to fielding errors or decisions, as it does not increase when the batter reaches base due to fielding error, fielder's choice, dropped/uncaught third strike, fielder's obstruction, or catcher's interference.