Since the entity we're targeting is most likely always a singleton it should be safe to skip checking the targetname anyway.
Something like this should suffice:
PHP Code:
int index = -1;
while ((index = FindEntityByClassname(index, "game_scavenge_progress_display")) != -1)
{
SetVariantInt(newTotalCans);
AcceptEntityInput(index, "SetTotalItems", -1, -1);
}