control 3x 7 segment single digits with 6 buttons

so.. if that's just for 1 button to count up.. i'll need a code to count down for the second button.. and then do that whole code 2 more times...

3 buttons to count up and 3 buttons to count down.. as shown in the example pic i provided

starting to see my dilemma?