I added the code to count the number of output spikes and to write them on a file with corresponding accuracies