A way to find the window count on each desktop

`TaskManager.ActivityInfo {

id: activityInfo

}

TaskManager.TasksModel {

id: taskmanager

activity: activityInfo.currentActivity

virtualDesktop: pos

filterByVirtualDesktop: true

filterByActivity: true

}`
Want a way to find the number of windows open on a desktop index = pos.
Currently this code above taskmanager.count returns 0 for all pos.