Can I limit List box filter to maximum number of User Selection

Hi All, 

Is there a way to limit List box filter. so that User can select maximum of 10 unique values out of 100s.

I have created filter of List box in  textarea as homepage. So wanted to know can we restrict user to select only 10 values.


Please let me know.

Thanks in advance.