Do you mean the 3D-objects counter specifically, as indicated by the topic tag?
You can translate the macros to python if you prefer (as I do myself). As an example, a simple 3d objects counter run recorded by the macro recorder can be translated very easily:
run("Fly Brain (1MB)");
run("3D Objects Counter", "threshold=62 slice=25 min.=10 max.=8000000 exclude_objects_on_edges objects surfaces centroids centres_of_masses statistics summary");
from ij import IJ
IJ.run("Fly Brain (1MB)")
IJ.run("3D Objects Counter", "threshold=62 slice=25"
+ " min.=10 max.=8000000 exclude_objects_on_edges"
+ " objects surfaces centroids centres_of_masses statistics summary")
Edit: If you provide a more extensive macro that does what you want maybe we can help you make it work in Python, if you really need it to. The macro language is quite capable too!