Update README.md
diff --git a/README.md b/README.md
index e15b8b8..3ce22fe 100644
--- a/README.md
+++ b/README.md
@@ -236,8 +236,8 @@
 ```
 
 To count the number of resources without retrieving the resources you can use `count` query parameter.
-```
-ow.actions.list({count:true}).then(a => console.log(a)) //prints {"actions": 42}
+```javascript
+ow.actions.list({count:true})
 ```
 
 The following optional parameters are supported: