Maybe something like this...

=SUMPRODUCT(--(A1:A10<>""),--(A1:A10<>"-"))