After reading through the following question (which is kinda related but not quite what I need):
How can I show points on the same coordinate as e.g. a bigger symbol in QGIS?
I found out that there might be a need to label these locations that have multiple points with same lat/long values. For example, if a location has 20 features in it, I want the label to say 20. Or even more useful: if a location has 20 features in the location, and 15 fulfill a condition (string = abc), I want the label to say 15.
Is there a way of doing so in QGIS?