A neural-counting model incorporating refractoriness and spread of excitation. I. Application to intensity