Count a number of points on graph that pass through the origin

How do I key the codes for count a number of points on graph (Complex function(left side)) that pass the origin?

Do you mean actually hitting the origin? Or some form of containment? For that latter you’d really want a closed curve and also you would need to determine whether you want a direct hit to count as inside or outside.