Postgresql Count Character In String In Javascript W3schools