I am having some issues with finding out the frequency of an exact array's values

Examples: Result:

[3, 6, 8, 9, 10]

[3,4, 6, 8, 9]

[3, 6, 8, 9, 10]

Results: Count of exact array's values

[3, 6, 8, 9. 10] = 2

[3, 4, 6, 8, 9] = 1

So far, I have tried Frequency, CountIFS, and CountIF functions; received errors, or inaccurate results.

Users who have happened to know Excel's formulas should be able to solve this in reply.

Regards,

JohnCTX