echo "SELECT COUNT(*) AS tabelle FROM tabelle;" | psql -d testdb -U dbuser