Image analysis-based recognition and quantification of grain number per panicle in rice