Fixed memory counting