get_count
get_count($visibled=true,$mained=true); - this function is used to get the number of all Windows of the specified type.
the input Function accepts parameters:
$visibled – parameter indicating that when executing this command, only visible Windows should be considered (true) or both visible and invisible (false).
$mained – a parameter indicating that when executing this command, only the main Windows should be considered (true) or both main and non-main Windows (false).
After testing, the function returns the result of its work to the script :
number of Windows – the number of Windows of the specified type