Counting very small bright spots in image


I am looking to count very small bright spots (in dark background) in an image and have used local thresholding along with intensity enhancement (image attached), however, I have to modify code according to image and hence it does not remain dynamic. I was wondering if I could be helped.