Try this and let me know if it works:

=SUMPRODUCT(--(A1:A6=1),--(B1:B6<10))