"Whether" is correct because the question concerns a choice not a condition. With the expression "the number of’ a singular verb is needed and hence "was" is correct. "Liable" is used in expressions such as "liable to prosecution" and not for expressions of possibility.