And, even better, arrays in Ada (can't speak to Pascal) can be any discrete type so long as it is a range:
type Character_Histogram is Array (range 'A'..'Z') of Integer;
-- syntax may be off, not enough practice to do this cold right now