A bar does not contain "34 beats." The number of beats per bar is defined by the time signature:
If you're asking about a specific piece, please provide the time signature. "34" is not a standard time signature; you may be confusing 3/4 (three-quarter time) with the number 34.