One thing to remember is that an array can have multiple modes. For example [1,2,2,3,4,4,5] has modes 2 and 4. They both occur at the highest frequency (count=2).
I made a quick implementation for integer arrays, but it could be easily adapted for DBL arrays.
See attached (LabVIEW 7.1). It is not fully tested, so please verify operation. 😉
Inputs: Integer array of any length (including empty array)
Outputs: (1) count of elements of mot frequent element, (2) array of modes (elements that occur "count" times in input array.