in memory counter; form payload