count needs to test with the equal function when counting alists.