Map to collect nodes I have a content type with +3000 nodes, and it has a field set as Term Reference for countries. I would like to have a map that count all these nodes (maybe with Views), but all solutions I have found was to set a geofield using Gmap module, and in my case it will be hard to go through the +3000 nodes to give each node its location.

So is there is any module that can count nodes of each term, showing it on its country? Also if I would like to show only five countries instead of whole world map, is that a map library or map modules can do that?
Although it doesn't look too complicated, I'd normally use the following modules to easily add and display nodes on a map:


Leaflet;
Leaflet Views;
Leaflet More Maps;
Views;
Geofield;
Geocoder;
Geocoder Autocomplete;
GeoPHP;
Entity;
Entity Reference;
Chosen;


I don't work with Taxonomy terms. Instead, I create a node type named, let's say "Category" and add the right categories as nodes instead of terms in a vocabulary. It is easier like this and offers me more flexibility in the future.

The Category content type is based on a form that only includes Title as field. I'm adding them manually, which is not as simple as adding tags (terms) with the autocomplete options. As an alternative, I think you could use Inline Entity Form to add Categories during node add form. Not sure though.

When adding nodes, you need:


an entity reference field pointing to the Category (using Chosen could help, if you don't have 10k categories);
a textfield using Geocoder text field with autocomplete;
a Geofield using Geocode from another field.


Now, when adding nodes, you get the Google Geocoder autocomplete option and the geofield will auto-fill with the right coordinates.

Then, I'm using Views to display items on the map with Leaflet. Here you can choose displaying only first 5 items, based on whatever filter criteria and order options you'd like. The view is a block and has an Entity Reference relationship poiting from the node to the category node + a contextual filter NID type my-node-type, with content ID from URL argument that uses this relationship.

Block will show up only on Category node-type pages in the content area.

Doesn't look very simple but there are a few tutorials on how to achieve that with leaflet, geofield and entities on Youtube. There are other ways to solve your problem, like using EVA with DS, adding blocks as fields in your DS display.