optimized read/write counting