Thank You for Responding
I Looked into the code and FAQ section in README.textfile
The creator of that code not giving any valid and justifying explanation on the logic of step counter
The algorithm looks like a simple neural network with one neuron. Normally, neural networks get trained by providing the input and output data to adjust the weights. In this case, it looks like the user figured out the weights by trial and error.