Counts the number of lines in each file found matching pattern.
Params:
base - root directory to start the search
pattern - pattern for glob to match (i.e '*.py')
func - boolean filter function
example: lambda x : True if len(x.strip()) else False #don't count empty lines
default: lambda x : True