Merge pull request #2768 from porquero/patch-1

Added post-increment for $count