City teacher charged with sex-related counts