I have to write a function that takes a list of integers as a parameter & returns the number of integers from the list that are less than 1. What I have so far is a function that just returns how many integers in the list. I am not sure where/if I'm supposed to put a if statement and counter to only return how many integers are less than 1.
-export([num/1]).
num([]) -> 0 ;
num(L) -> num(L,0).
num([],Len) -> Len;
num([_|T],Len) ->
num(T,Len+1).