It's always a little tricky to ask a SQL database about stuff that doesn't exist. It's also tricky to ask a SQL database about the difference between rows.
You'll need to find all the rows in datePool such that date + 1 doesn't exist, and you need the extent of the gap:
Code:
select distinct o.dateCol + 1 as start_dt,
(select min(i.dateCol) from yourTable i where i.dateCol > o.dateCol) - 1
as end_dt, end_dt - start_dt + 1 as count
from yourTable o where end_dt > o.dateCol + 1
(i refers to the "inner" version of a table, and o to the "outer")
I'm not a big SQLite user, so I'm not sure it will handle all these subqueries, but I think it's pretty flexible. You may need to use a function to add or subtract days.
Also, if yourTable guarantees that each date is only represented once (if that column is UNIQUE or PRIMARY KEY), you can drop the 'distinct' keyword. Either way, I'd recommend an index on that column.