count(*) counts the number of tuples returned . In second case , surely it wont be 0.
But in 1st case , there won't be any tuples returned after filtering out , since A->B functional dependency is being maintained.
count(*) here will give 0 since number of tuples after filter is none