Added a separate function to handle v2 counts and refactored the existing code that distinguishes v2 and v3 atom and bond counts
Added a separate function to handle v2 counts and refactored the existing code that distinguishes v2 and v3 atom and bond counts

molstar/molstar,molstar/molstar,molstar/molstar