try to count allocated bytes