הלכות קטנות לרא"ש (מנחות) הלכות ציצית סימן ו
ו תנן בראש התכלת [שם דף לח א] התכלת אינו מעכב את הלבן הלבן אינו מעכב את התכלת. פירש"י אף ע"ג דמצוה לתת ב' חוטי תכלת וב' לבן בציצית אפילו הכי אין זה מעכב את זה ואי עביד ארבעתן תכלת או ארבעתן לבן יצא ולכאורה הוי משמע דאין זה מעכב את זה היינו שאם הטיל ב' חוטין מין אחד יצא כי הא דתפילין של יד אינה מעכבת של ראש ושל ראש אינה מעכבת של יד. ונהגו כפירוש רש"י.
In short, the Rosh holds that there should be 2 strings of blue and 2 strings of white.
I am fairly certain the Rif does not comment.
NOTE:
You may find it interesting to note that Rav Yosef Karo in his Beit Yosef does comment on the issue.
בית יוסף אורח חיים סימן יא
ונראה דלא בעי למיחת לפלוגתא במלתא דלא נפקא לן מידי בהאי זימנא
Roughly translated as: And it seems that we don't need to enter into this disagreement [regarding the number of blue strings] as it is a matter which has no practical purpose at this time.