neo4j and php Transaction Handling

neo4j and php Transaction Handling

Well scenario is like this:
I create a one node called 'counter node'. Its initial value is 0 and
incremented as user create its account on my website.
So there are three operation happen to operate this:
Read 'counter node' value
Do some logic in php . Here like +1 to previous value of 'counter node'
Write new value of 'counter node'
Now problem is, If two or more users are coming exactly same time and
creating such a condition that
Before first user write new value to 'counter node' , it is being read by
second user. Thus this will leave value of my 'counter node' in unstable
condition.
Hope you got what I meant..
Any Solution ??
I am using neo4j 1.9.5 and php
Php Jadell :
http://github.com/jadell/Neo4jPHP%E2%80%8E
I heard of batch processing but not sure whether it will work. If any
solution , Can you please give me a short example.
Thanks Amit Aggarwal