Thanks Mitch_CA,
that was exactly what i was looking for.
To check for LOW instead of HIGH, I do this right? (or is there a leaner way?)
if (PIND & B00100000 == LOW) // evaluates to TRUE when PortD bit #5 (Arduino digital pin #5) is LOW
{
counter++;
print_flag = true;
}