Change the OsVersion to whichever Windows 10 build you'd like to get a count of. 10.0.19043 is build 21H1. Other build numbers are easily available on the web (https://en.wikipedia.org/wiki/Windows_10_version_history)
Devices[?Asset.OsVersion ==
10.0.19043
] | length(@)