input: Write a python function to count the total number of entries in all tables of a given SQLite database.
  assert count_entries("example.db") == 123  # Assuming the total number of entries is 123
  assert count_entries("test.db") == 50      # Assuming the total number of entries is 50
  assert count_entries("empty.db") == 0      # Assuming there are no entries in any table
output: import sqlite3
  
  def count_entries(database_path):
      conn = sqlite3.connect(database_path)
      cursor = conn.cursor()
      
      cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
      tables = cursor.fetchall()
      
      total_entries = 0
      for table in tables:
          table_name = table[0]
          cursor.execute(f"SELECT COUNT(*) FROM {table_name};")
          count = cursor.fetchone()[0]
          total_entries += count
      
      conn.close()
      return total_entries