It is very difficult to count on tree fruits.Also manual counting of fruits take lot of time as well as labor and it may also cause damage to fruits during counting.For automatic counting I am using computer vision techniques. For automatic detection and counting of number of on tree fruits you should requires following dependencies: Python 2.7 or Python 3 version,OpenCv,Numpy.Here I am counting apple and orange fruits.For counting of other types of fruits you have to change threshold value of color according to color of fruit.