In this paper we study the spectral counting function for the weighted$p$-laplacian in one dimension. First, we prove that all the eigenvalues can be obtained by a minimax characterization and then we show the existence of a Weyl-type leading term. Finally we find estimates for the remainder term.