Real time Algorithm for Tree Detection, Recognition and Counting in a Video Sequence