Closes #22. Now we recalc total counetr in separate thread