def numberOfPhotosInDB(dbCursor):
  """Returns the number of all photos in database pointed to by dbCursor"""
  dbCursor.execute('''SELECT * FROM eyesInPhotos''')
  allDBPhotos = dbCursor.fetchall()
  
  return len(allDBPhotos)