function countItemsInSection(section){
  db.result(`SELECT * FROM groceries.items WHERE section = $1`, section)
    .then(function(result) {
      return result.rowCount;
    });
}
//Count of all grocery items in the given section:
Count of all grocery items in the given section.
Count of all grocery items in the given section .
function countItemsInSection(section){
  db.result(`SELECT * FROM groceries.items WHERE section = $1`, section)
    .then(function(result) {
      return result.rowCount;
    });
}
function countItemsInSection ( section ) { db . result ( ` ` , section ) . then ( function ( result ) { return result . rowCount ; } ) ; }
Count of all grocery items in the given section:
Count of all grocery items in the given section :