Hi Sakib,
Is possible can you try upgrading Phython SDK library that supports the value? - https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/sdk-python - this helped most of the users as per my experience.
you also try alternate solution.
cosmos_query = "SELECT c FROM c WHERE c.x = 'x'"
query_result = list(container.query_items(
query=cosmos_query,
enable_cross_partition_query=True
))
count = len(query_result) # Count the number of returned documents
print(f"Count: {count}")
Note- enable_cross_partition_query=True is only needed if your query need to access data from multipel partitions.
Please accept if this answer if helped, do let me know if you have additional question.