Implemented average unit per village counting