I have a content type where a taxonomy term is associated to it . I would like to know how could i count the number of content types by taxonomy term ?
You can use the following snippet, to get count of nodes by passing the term id
<?php $tids = array(1); //An array of term IDs to match. $nodes = taxonomy_select_nodes($tids); echo count($nodes) ; ?>
You can use views to achieve this, check this similar question . It explains an example