Plantalyzer works as automatic counting system for tomatoes in greenhouses