Used Hash to represent Cards and count is computed from the respective Classes