What kind of dataset do you have? images or point cloud? If you want to count crops, neural network based on images will be a good choice. If you want to count trees, tree top detection algorithms are common in many literatures based canopy height model derived from point cloud.