結果 : postgresql function select count into variable