Detector of Image Orientation based on Borda-count