def select_count_from(session, table) -> int:
    """
    Function to select row count from provided table (like SELECT COUNT(*) FROM table)
    :param session: sqlalchemy session
    :param table: table to select from
    :return: row count
    """
    count = session.query(table).count()
    return count