Character count on textbox in datagrid

I have a radzendatagrid where I show 10 rows with each having a textbox. I need to show character count as the user types so they know how many more characters they have. Has anyone done this and might have an example?

I found this but I'm not sure how to implement within a datagrid:

You can simply create a custom component (page) and place the code from StackOverflow thread in it - later you can use the custom component in DataGrid column EditTemplate, Template or whenever you need it. You will need also a property/parameter in your component where you will pass the binding to some specific property of the DataGrid item.

Hi @Darin_Vanatta

Further to @enchev's answer, I found this to be a great resource for explaining how to write your own components.

Blazor University - Creating a component (