You wouldnt count as homeless if you live with your parents or a friend. Here is the accepted US standard
It is split into 2 types sheltered homeless and unsheltered homeles
[Sheltered]
For sheltered homeless people, CoCs are instructed to count all adults, children, and unaccompanied youth residing in emergency shelters and transitional housing, including domestic violence shelters, residential programs for runaway/homeless youth, and any hotel/motel/apartment voucher arrangements paid by a public/private agency because the person is homeless. In addition to collecting a one-day, point-in-time count of homeless individuals and families in shelters, CoCs must collect information on the number of sheltered homeless people considered to be: chronically homeless, seriously mentally ill, chronic substance abusers, veterans, persons with HIV/AIDS, victims of domestic violence, and unaccompanied youth.
[Unsheltered]
For unsheltered homeless people, CoCs are instructed to count all adults, children, and unaccompanied youth sleeping in places not meant for human habitation, which include: Streets, parks, alleys, parking ramps, parts of the highway system, transportation depots and other parts of transportation systems (e.g., subway tunnels, railroad cars), all-night commercial establishments (e.g., movie theaters, laundromats, restaurants), abandoned buildings, building roofs or stairwells, chicken coops and other farm outbuildings, caves, campgrounds, vehicles, and other similar places. (2004 CoC application)
So living with your parents doesnt at all make you homeless. California also has the #1 highest rate of its homeless population being categorized as 'unshelted' in the US (in 2018). A massive 69% of California's homeless population are sleeping in places deemed not fit for human habitation.