Sparsification and a Faster Deterministic Counting Algorithm