This does the following:
- Since a query is supplied, this will only return the count of device assets that match the query.
- To avoid dealing with nested quoting and escapes in shells, we store the query in a file and supply that to --query-file.
$ axonshell devices count --query-file query.txt