def query_table_count(spark, table):
    """Query example returning row count of the given table.

    Keyword arguments:
    * spark            -- spark session
    * table            -- table to count

    Output:
    * count            -- count of rows in given table
    """
    return table.count()