I am trying to extract key "count" from response data and write it's value (int) in CSV file.

I have used BeanShell PostProcessor for the same.

Below is script I have used:

```
count = vars.get("count");

f = new FileOutputStream("file path", true);
p = new PrintStream(f); 
this.interpreter.setOut(p); 
print(count);
f.close();

```

And JSON sample, I am trying to extract:

```
{"meta":{"message":"","is_error":false,"count":295,"next":"123","status":1000,"previous":""}

```

Doing this, "null" gets printed in CSV file. 

Please let us know what am I missing here?

It supposed to be 295 gets printed in CSV file.