Make sure that results from a feature counter will only be delivered on the main thread and that they will be discarded if the layer is deleted meanwhile.