Also adds more convenience functions: counting with a where statement and a wrapper to execute_values().