same as forward count in activesupport we can count from last

same as we got array forward position element can we do for array backward position element starting from last