Adds tests for and implements no collection supplied 'error‘
add the count function