Thank you!
It actually isn't that complicated. When player sends smoke, the time is saved to a list. Then the program creates results list (with one element = 1) and goes through the time list, starting from 2nd element - if the difference between current and previous elements is lower then some threshold it increments last element in result list. If higher - adds new element to results list.
Thanks for taking your time and trying out my game ;)