Counter script for Apstrata backend 

This is the script that will save the count to the document store.