Postgresql Count Character In String Python Functions W3schools