To calculate the number of jellybeans in a jar, count the number of jellybeans on the top layer of the jar. Then, count the number of jellybeans going down the side of the jar, and multiply that number by the number of jellybeans in the top layer to get an estimate of the number of jellybeans in the jar.