Postgresql Count Character In String Python Functions Without Parameters