createTerms(); $query->setFields('features,name'); $query->setLowerbound('i'); // this executes the query and returns the result $resultset = $client->terms($query); // display terms foreach ($resultset as $field => $terms) { echo '

' . $field . '

'; foreach ($terms as $term => $count) { echo $term . ' (' . $count . ')
'; } echo '
'; } htmlFooter();