location count - first implementation