from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense model = Sequential() model.add(Dense(10, input_shape=(5,), activation='relu')) model.add(Dense(1, activation='sigmoid')) # Get the number of parameters in the model num_params = model.count_params() print(num_params) # Output: 61In this example, the `count_params` function returns the number 61, which represents the total number of trainable parameters in the model. The `count_params` function is part of the `tensorflow.keras.models` package library, which is a sub-package of the `tensorflow.keras` library. This package provides a range of functions and classes for building, training, and evaluating deep learning models using the Keras API within the TensorFlow framework.