How to apply filter based on row value digit count

Hi Team,

Please anyone help me any other approach to process this.

Regards,
Raja G