A (simple) classical algorithm for estimating Betti numbers