getting Count of a digits present in a numeric value

Can anyone suggest me which function or expression I can get the count of digits in a numeric value? i.e. I have a number like 240001. My desired output: 6

  Discussion posts and replies are publicly visible