New function to filter words greater than a number