allow count(*) in pivot table spec

reviewer: raymond