Changing Dataset from Write-only to Read-only

How do I change a WIX dataset from write-only to read-only? Does anyone know?

I’m trying to execute a getTotalCount function and getting the following error:

Error: Operation (getTotalCount) not allowed on write-only dataset

Click on the dataset element, then, click on the drop down with label “Write Only”. You will see the Read Only or Read and Write option