Tag counter propagation neural network