fix race condition and setting count only if not set before
Fixes #6: In concurrent environment, the race condition occurs.
Merge branch 'pr/7' into develop
move some excellent comments and explanations to the ratelimiter wiki pages in order to maintain a good code readability