It’s not really a bug. This is just the way looping has to work: The first and last frames of the loop should be the same or very close.
In essence, the last frame of the looped range is removed as it is expected to match the first frame. Imagine a looping animation that is 30 frames long. The 30th frame is the end of the animation but should match frame zero, right? A 30 frame loop would be frames 0 through 29 then and frame 30 is frame 0.
So, if you want to export an alembic object and then set it to loop, you can key each number starting from zero to four and then the last key is zero.
Then export that frame range (frames 0-5).
You can also simply do this in the timeline by selecting the ‘text’ track and then set the “after” value to “repeat” in the attributes manager.
Again, for this to work correctly, the first and last keys would need to be identical.
You can also do this using a small bit of xPresso (see attached file for several examples).
13957_loopcount.c4d.zip