Counting the number of Notes selected and Statistics for MIDI

At times we need to count the number of notes selected.

It would be great if it was a “statistic” function for MIDI as we have in Audio. Things like: key, if they form a chord, lowest and highest notes, the number of Cs, C#s, Ds, …, Bs, and maybe more.