Counting the invalid seeds