We recast the problem of calculating Vapnik-Chervonenkis (VC) density into one of counting types, and thereby calculate bounds (often optimal) on the VC density for some weakly o-minimal, weakly quasi-o-minimal, and P -minimal theories.Our approach to Theorem 1.1, via definable types, was partly inspired by the use of Puiseux series in [11,81].Let ACVF denote the theory of (non-trivially) valued algebraically closed fields, in the ring language expanded by a predicate for the valuation divisibility. This has completions ACVF (0,0) (for residue characteristic 0), ACVF (0,p) (field characteristic 0, residue characteristic p), and ACVF (p,p) (field characteristic p). Because ACVF (0,0) is interpretable in RCVF, our methods give (non-optimal) density bounds for ACVF (0,0) (Corollary 6.3). However, they give no information on density in the theories ACVF (0,p) and ACVF (p,p) . The problems arise essentially because a definable set in 1-space in ACVF is a finite union of 'Swiss cheeses' but we have no way of choosing a particular Swiss cheese. This means that the definable types technique in our main tool (Theorem 5.7) breaks down. On the other hand, our methods do yield:Theorem 1.2. Suppose M = Q p is the field of p-adic numbers, construed as a firstorder structure in Macintyre's language L p . Then the VC density of every L p -formula ϕ(x; y) is at most 2|y| − 1.