Neurocounter counts the number of objects in a given surveillance area using a neural network. When the event condition is met, an event with the number of detected objects is generated.