Counting objects With odm

I would like to get more info about using ODM to count objects , especially trees , what is needed