Node count for taxonomy terms How can I display the node count values for taxonomy terms with sorting the result list in descending order of node count?
Create a taxonomy view
Add node group in relationship
Add term name and node nid fields for display
Enable aggregation in "Other" section (Use aggregation: Yes)
Click nid field settings icon, choose group type "count".


Find the export of views that worked for me.

$view = new view;
$view-&gt;name = 'term_node_count';
$view-&gt;description = 'Displays node count values for terms';
$view-&gt;tag = '';
$view-&gt;base_table = 'taxonomy_term_data';
$view-&gt;human_name = 'term_node_count';
$view-&gt;core = 7;
$view-&gt;api_version = '3.0-alpha1';
$view-&gt;disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view-&gt;new_display('default', 'Defaults', 'default');
$handler-&gt;display-&gt;display_options['use_ajax'] = TRUE;
$handler-&gt;display-&gt;display_options['group_by'] = TRUE;
$handler-&gt;display-&gt;display_options['access']['type'] = 'none';
$handler-&gt;display-&gt;display_options['cache']['type'] = 'none';
$handler-&gt;display-&gt;display_options['query']['type'] = 'views_query';
$handler-&gt;display-&gt;display_options['exposed_form']['type'] = 'basic';
$handler-&gt;display-&gt;display_options['pager']['type'] = 'full';
$handler-&gt;display-&gt;display_options['pager']['options']['items_per_page'] = '100';
$handler-&gt;display-&gt;display_options['pager']['options']['offset'] = '0';
$handler-&gt;display-&gt;display_options['pager']['options']['id'] = '0';
$handler-&gt;display-&gt;display_options['pager']['options']['expose']['items_per_page_options_all'] = 0;
$handler-&gt;display-&gt;display_options['style_plugin'] = 'table';
$handler-&gt;display-&gt;display_options['style_options']['columns'] = array(
  'name' =&gt; 'name',
  'nid' =&gt; 'nid',
);
$handler-&gt;display-&gt;display_options['style_options']['default'] = '-1';
$handler-&gt;display-&gt;display_options['style_options']['info'] = array(
  'name' =&gt; array(
    'sortable' =&gt; 0,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
  ),
  'nid' =&gt; array(
    'sortable' =&gt; 0,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
  ),
);
$handler-&gt;display-&gt;display_options['style_options']['override'] = 1;
$handler-&gt;display-&gt;display_options['style_options']['sticky'] = 0;
/* Relationship: Taxonomy: Node */
$handler-&gt;display-&gt;display_options['relationships']['nid']['id'] = 'nid';
$handler-&gt;display-&gt;display_options['relationships']['nid']['table'] = 'taxonomy_index';
$handler-&gt;display-&gt;display_options['relationships']['nid']['field'] = 'nid';
$handler-&gt;display-&gt;display_options['relationships']['nid']['required'] = 0;
/* Field: Taxonomy: Term */
$handler-&gt;display-&gt;display_options['fields']['name']['id'] = 'name';
$handler-&gt;display-&gt;display_options['fields']['name']['table'] = 'taxonomy_term_data';
$handler-&gt;display-&gt;display_options['fields']['name']['field'] = 'name';
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['alter_text'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['make_link'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['absolute'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['trim'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['word_boundary'] = 1;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['ellipsis'] = 1;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['strip_tags'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['alter']['html'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['element_label_colon'] = 1;
$handler-&gt;display-&gt;display_options['fields']['name']['element_default_classes'] = 1;
$handler-&gt;display-&gt;display_options['fields']['name']['hide_empty'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['empty_zero'] = 0;
$handler-&gt;display-&gt;display_options['fields']['name']['link_to_taxonomy'] = 1;
/* Field: Node: Nid */
$handler-&gt;display-&gt;display_options['fields']['nid']['id'] = 'nid';
$handler-&gt;display-&gt;display_options['fields']['nid']['table'] = 'node';
$handler-&gt;display-&gt;display_options['fields']['nid']['field'] = 'nid';
$handler-&gt;display-&gt;display_options['fields']['nid']['relationship'] = 'nid';
$handler-&gt;display-&gt;display_options['fields']['nid']['group_type'] = 'count';
$handler-&gt;display-&gt;display_options['fields']['nid']['label'] = 'Count';
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['alter_text'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['make_link'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['absolute'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['trim'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['word_boundary'] = 1;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['ellipsis'] = 1;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['strip_tags'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['alter']['html'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['element_label_colon'] = 1;
$handler-&gt;display-&gt;display_options['fields']['nid']['element_default_classes'] = 1;
$handler-&gt;display-&gt;display_options['fields']['nid']['hide_empty'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['empty_zero'] = 0;
$handler-&gt;display-&gt;display_options['fields']['nid']['link_to_node'] = 1;

/* Display: Block */
$handler = $view-&gt;new_display('block', 'Block', 'block_1');
$translatables['term_node_count'] = array(
  t('Defaults'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort By'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('node'),
  t('Term'),
  t('Count'),
  t('Block'),
);