Primefaces TextEditor component Remaining character count

I am trying to get the custom implementation of Remaining character count using javascript. As Primefaces texteditor doesn’t have any KeyUp event, the editor values are not picking into the JS var items,

any other way we can implement to get the remaining characters count using javascript here? pls suggest.