#line 17609 "qb64pe.bas"
int32 FUNC_COUNTELEMENTS(qbs*_FUNC_COUNTELEMENTS_STRING_A){
#line 17609 "qb64pe.bas"
qbs *tqbs;
#line 17609 "qb64pe.bas"
ptrszint tmp_long;
#line 17609 "qb64pe.bas"
int32 tmp_fileno;
#line 17609 "qb64pe.bas"
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
#line 17609 "qb64pe.bas"
uint8 *tmp_mem_static_pointer=mem_static_pointer;
#line 17609 "qb64pe.bas"
uint32 tmp_cmem_sp=cmem_sp;
#line 17609 "qb64pe.bas"
#include "data56.txt"
#line 17609 "qb64pe.bas"
mem_lock *sf_mem_lock;
#line 17609 "qb64pe.bas"
new_mem_lock();
#line 17609 "qb64pe.bas"
sf_mem_lock=mem_lock_tmp;
#line 17609 "qb64pe.bas"
sf_mem_lock->type=3;
#line 17609 "qb64pe.bas"
libqb_check_stack();
#line 17609 "qb64pe.bas"
if (is_error_pending()) goto exit_subfunc;
#line 17610 "qb64pe.bas"
do{
#line 17610 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_N=FUNC_NUMELEMENTS(_FUNC_COUNTELEMENTS_STRING_A);
#line 17610 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17610 "qb64pe.bas"
if(!qbevent)break;evnt(17610);}while(r);
#line 17611 "qb64pe.bas"
do{
#line 17611 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_C= 1 ;
#line 17611 "qb64pe.bas"
if(!qbevent)break;evnt(17611);}while(r);
#line 17612 "qb64pe.bas"
S_20094:;
#line 17612 "qb64pe.bas"
fornext_value2440= 1 ;
#line 17612 "qb64pe.bas"
fornext_finalvalue2440=*_FUNC_COUNTELEMENTS_LONG_N;
#line 17612 "qb64pe.bas"
fornext_step2440= 1 ;
#line 17612 "qb64pe.bas"
if (fornext_step2440<0) fornext_step_negative2440=1; else fornext_step_negative2440=0;
#line 17612 "qb64pe.bas"
if (is_error_pending()) goto fornext_error2440;
#line 17612 "qb64pe.bas"
goto fornext_entrylabel2440;
#line 17612 "qb64pe.bas"
while(1){
#line 17612 "qb64pe.bas"
fornext_value2440=fornext_step2440+(*_FUNC_COUNTELEMENTS_LONG_I);
#line 17612 "qb64pe.bas"
fornext_entrylabel2440:
#line 17612 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_I=fornext_value2440;
#line 17612 "qb64pe.bas"
if (fornext_step_negative2440){
#line 17612 "qb64pe.bas"
if (fornext_value2440<fornext_finalvalue2440) break;
#line 17612 "qb64pe.bas"
}else{
#line 17612 "qb64pe.bas"
if (fornext_value2440>fornext_finalvalue2440) break;
#line 17612 "qb64pe.bas"
}
#line 17612 "qb64pe.bas"
fornext_error2440:;
#line 17612 "qb64pe.bas"
if(qbevent){evnt(17612);if(r)goto S_20094;}
#line 17613 "qb64pe.bas"
do{
#line 17613 "qb64pe.bas"
qbs_set(_FUNC_COUNTELEMENTS_STRING_E,FUNC_GETELEMENT(_FUNC_COUNTELEMENTS_STRING_A,_FUNC_COUNTELEMENTS_LONG_I));
#line 17613 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17613 "qb64pe.bas"
if(!qbevent)break;evnt(17613);}while(r);
#line 17614 "qb64pe.bas"
S_20096:;
#line 17614 "qb64pe.bas"
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_COUNTELEMENTS_STRING_E,qbs_new_txt_len("(",1))))||is_error_pending()){
#line 17614 "qb64pe.bas"
if(qbevent){evnt(17614);if(r)goto S_20096;}
#line 17614 "qb64pe.bas"
do{
#line 17614 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_B=*_FUNC_COUNTELEMENTS_LONG_B+ 1 ;
#line 17614 "qb64pe.bas"
if(!qbevent)break;evnt(17614);}while(r);
#line 17614 "qb64pe.bas"
}
#line 17615 "qb64pe.bas"
S_20099:;
#line 17615 "qb64pe.bas"
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(_FUNC_COUNTELEMENTS_STRING_E,qbs_new_txt_len(")",1))))||is_error_pending()){
#line 17615 "qb64pe.bas"
if(qbevent){evnt(17615);if(r)goto S_20099;}
#line 17615 "qb64pe.bas"
do{
#line 17615 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_B=*_FUNC_COUNTELEMENTS_LONG_B- 1 ;
#line 17615 "qb64pe.bas"
if(!qbevent)break;evnt(17615);}while(r);
#line 17615 "qb64pe.bas"
}
#line 17616 "qb64pe.bas"
S_20102:;
#line 17616 "qb64pe.bas"
if ((-(*_FUNC_COUNTELEMENTS_LONG_B< 0 ))||is_error_pending()){
#line 17616 "qb64pe.bas"
if(qbevent){evnt(17616);if(r)goto S_20102;}
#line 17616 "qb64pe.bas"
do{
#line 17616 "qb64pe.bas"
SUB_GIVE_ERROR(qbs_new_txt_len("Unexpected ) encountered",24));
#line 17616 "qb64pe.bas"
qbs_cleanup(qbs_tmp_base,0);
#line 17616 "qb64pe.bas"
if(!qbevent)break;evnt(17616);}while(r);
#line 17616 "qb64pe.bas"
do{
#line 17616 "qb64pe.bas"
goto exit_subfunc;
#line 17616 "qb64pe.bas"
if(!qbevent)break;evnt(17616);}while(r);
#line 17616 "qb64pe.bas"
}
#line 17617 "qb64pe.bas"
S_20106:;
#line 17617 "qb64pe.bas"
if ((qbs_cleanup(qbs_tmp_base,(qbs_equal(_FUNC_COUNTELEMENTS_STRING_E,qbs_new_txt_len(",",1)))&(-(*_FUNC_COUNTELEMENTS_LONG_B== 0 ))))||is_error_pending()){
#line 17617 "qb64pe.bas"
if(qbevent){evnt(17617);if(r)goto S_20106;}
#line 17617 "qb64pe.bas"
do{
#line 17617 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_C=*_FUNC_COUNTELEMENTS_LONG_C+ 1 ;
#line 17617 "qb64pe.bas"
if(!qbevent)break;evnt(17617);}while(r);
#line 17617 "qb64pe.bas"
}
#line 17618 "qb64pe.bas"
fornext_continue_2439:;
#line 17618 "qb64pe.bas"
}
#line 17618 "qb64pe.bas"
fornext_exit_2439:;
#line 17619 "qb64pe.bas"
do{
#line 17619 "qb64pe.bas"
*_FUNC_COUNTELEMENTS_LONG_COUNTELEMENTS=*_FUNC_COUNTELEMENTS_LONG_C;
#line 17619 "qb64pe.bas"
if(!qbevent)break;evnt(17619);}while(r);
#line 17620 "qb64pe.bas"
exit_subfunc:;
#line 17620 "qb64pe.bas"
free_mem_lock(sf_mem_lock);
#line 17620 "qb64pe.bas"
#include "free56.txt"
#line 17620 "qb64pe.bas"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
#line 17620 "qb64pe.bas"
cmem_sp=tmp_cmem_sp;
#line 17620 "qb64pe.bas"
return *_FUNC_COUNTELEMENTS_LONG_COUNTELEMENTS;
#line 17620 "qb64pe.bas"
}
