class PgConn::Connection

def count(*query)

The number of records in the table or in the query

count(table_name, where_clause = nil)
count(query)
:call-seq:
def count(*query)
  inner_query = parse_query *query
  value("select count(*) from (#{inner_query}) as inner_query")
end