A. By whom can the stars in the sky be counted?
B. By whom can be stars in the sky counted?
C. By whom could the stars be counted in the sky?
D. By whom could the stars in the sky by counted?
In such case who will change into by whom.
Rule :
By whom + subject + (was /were) + V3 + other agents.