i hope you understand what was the mistake we were doing
missing wind count = 0 !!
nope, we were making wind count = 0 before pushing it. so the value returned was always zero.
thanks @omcbmc for the code. better if you could create a detailed tutorial about this in project category.