Memory allocations counter