Other option without "screen out"
If you have some "last questions" like demography or something like that.
Put one question in each of your "Dummy groups"
This question gets the css class {if(is_empty(Q1,'hidden','')} - you remember Q1 the "last" question of the questionnaire before the "dummies".
The text display gets the opposite {if(!is_empty(Q1,'hidden','')}
By the way, you can include the button in the text display.
and it looks better with some bootstrap classes like "btn btn-primary" or "btn btn-warning"
This is necessary because there will be displayed an empty group with buttons, if you hide all questions by css.
In your counter insert a variable that checks Q4 (answerede or not)
var answered={if(is_empty(Q4),1,0)};
Now you may write "visits" like this (you save a new IF cnstruct)
visits = Number($.trim($('input:text:eq(0)', thisQuestion).val())) + answered;
Joffm
So, genug auf Englisch parliert.